//#include<stdio.h>
//#include<stdlib.h>
//#include<string.h>
//#include<assert.h>
//void reverse(int* arr, int left, int right)
//{//	 0  ,  3
//	while (right > left)
//	{
//		int tmp = arr[left];
//		arr[left] = arr[right];
//		arr[right] = tmp;
//		right--;
//		left++;
//	}
//}
//
//void rotate(int* nums, int numsSize, int k)
//{
//	int n = numsSize;//n=7
//	k %= n;//k=3
//	reverse(nums, 0, n - k - 1);
//	reverse(nums, n - k, n - 1);
//	reverse(nums, 0, n - 1);
//
//}
//
////void rotate(int* nums, int numsSize, int k)
////{
////	int n = numsSize;
////	k %= n;
////	int* tmp = (int*)malloc(sizeof(int) * n);
////	assert(tmp);
////	memcpy(tmp, nums+n-k, sizeof(int) * k);
////	memcpy(tmp+k, nums, sizeof(int) * (n - k));
////	memcpy(nums, tmp, sizeof(int) * n);
////	free(tmp);
////	tmp = NULL;
////}

#include<stdio.h>
int removeElement(int* nums, int numsSize, int val) 
{
	int* src = nums;
	int* dst = nums;
	int i = 0;
	int j = 0;
	while (i < numsSize)
	{
		if (src[i] != val)
		{
			dst[j] = src[i];
			j++;
		}
		i++;
	}
	return j;
}
int main()
{


	return 0;
}